package com.jrapider.manager.data.om;

import com.baomidou.mybatisplus.annotation.*;
import com.jrapider.CommonConstants;
import com.jrapider.compent.dict.DictTranslater;
import lombok.Getter;
import lombok.Setter;

@TableName("sys_dept")
@Getter
@Setter
public class SysDept extends _SysDept {

    public String getPcodeCN() {
        return DictTranslater.getNote("dept", pcode);
    }

    public String getStateCN() {
        return DictTranslater.getNote(CommonConstants.DICT_TF, state);
    }
}
